package com.dayu.common.to.es;

import lombok.Data;
import lombok.ToString;
import org.springframework.cloud.bootstrap.BootstrapConfiguration;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author dayu
 * @version 1.0
 * @email dayu007@foxmail.com
 * @date 2020/12/5 14:33
 * @description
 */
@Data
@ToString
public class SkuEsModel {

    private Long skuId;
    private Long spuId;
    private BigDecimal skuPrice;
    private Long saleCount;
    private Long hotScore;
    private Long brandId;
    private String skuTitle;
    private String skuImg;
    private String brandName;
    private String brandImg;
    private String catalogName;
    private Boolean hasStock;
    private Long catalogId;

    private List<Attrs> attrs;

    @Data
    public static class Attrs {
        private Long attrId;
        private String attrName;
        private String attrValue;
    }
}
